#if 0
//
// Generated by Microsoft (R) D3DX9 Shader Compiler 9.15.779.0000
//
//   fxc /T ps_2_0 /E mainPSba /Fh
//    C:\Program Files\Rockstar Games\GTA San Andreas\extra_resources\shaders\veh_matnull_sm2a_ba.txt
//    C:\Program Files\Rockstar Games\GTA San Andreas\extra_resources\shaders\veh_matnull_sm2a.hlsl
//
//
// Parameters:
//
//   float4 LightColor1;
//   float4 MatAmbient;
//   float4 MatDiffuse;
//   float MatSpecPow;
//   sampler2D colorSampler;
//   sampler2D normalSampler;
//   float4 sceneambient;
//
//
// Registers:
//
//   Name          Reg   Size
//   ------------- ----- ----
//   LightColor1   c0       1
//   MatDiffuse    c1       1
//   MatAmbient    c2       1
//   MatSpecPow    c3       1
//   sceneambient  c4       1
//   colorSampler  s0       1
//   normalSampler s1       1
//
//
// Default values:
//
//   LightColor1
//     c0   = { 1, 1, 1, 1 };
//
//   MatDiffuse
//     c1   = { 1, 1, 1, 1 };
//
//   MatAmbient
//     c2   = { 0, 0, 0, 1 };
//
//   MatSpecPow
//     c3   = { 40, 0, 0, 0 };
//
//   sceneambient
//     c4   = { 0, 0, 0, 1 };
//

    ps_2_0
    def c5, -0.5, 0, 0, 0
    dcl_pp t0.xy
    dcl_pp t1.xyz
    dcl_pp t2.xyz
    dcl_pp t3.xyz
    dcl_pp t4.xyz
    dcl_pp t5.xyz
    dcl_pp t6.xyz
    dcl_2d s0
    dcl_2d s1
    texld r1, t0, s1
    texld_pp r0, t0, s0
    nrm_pp r2.xyz, t5
    nrm_pp r3.xyz, t6
    add_pp r1.xy, r1, c5.x
    add_pp r1.z, r1.w, c5.x
    mul_pp r3.xyz, r3, r1.y
    dp3_pp r4.x, t2, t2
    mad_pp r2.xyz, r1.x, r2, r3
    rsq_pp r1.w, r4.x
    mad_pp r2.xyz, t2, r1.w, r2
    nrm_pp r3.xyz, r2
    mov_pp r2.xyz, t4
    add_pp r4.xyz, r2, -t3
    dp3_pp r1.x, r4, r4
    rsq_pp r1.w, r1.x
    nrm_pp r2.xyz, t1
    mad_pp r5.xyz, r4, r1.w, r2
    nrm_pp r4.xyz, r5
    dp3_pp r1.x, r4, r3
    max_pp r2.w, r1.x, c5.y
    dp3_pp r1.x, r2, r3
    pow_pp r1.w, r2.w, c3.x
    mul_pp r2.xyz, r1.z, c0
    max_pp r2.w, r1.x, c5.y
    mul_pp r1.w, r1.w, r2.w
    mul_pp r1.xyz, r2.w, c0
    mul_pp r2.xyz, r2, r1.w
    mov_pp r3.xyz, c2
    add_pp r3.xyz, r3, c4
    mad_pp r1.xyz, c1, r1, r3
    mad_pp r0.xyz, r1, r0, r2
    mul_pp r0.w, r0.w, c1.w
    mov_pp oC0, r0

// approximately 46 instruction slots used (2 texture, 44 arithmetic)
#endif

const DWORD g_ps20_mainPSba[] =
{
    0xffff0200, 0x0068fffe, 0x42415443, 0x0000001c, 0x0000016a, 0xffff0200, 
    0x00000007, 0x0000001c, 0x00000100, 0x00000163, 0x000000a8, 0x00000002, 
    0x00000001, 0x000000b4, 0x000000c4, 0x000000d4, 0x00020002, 0x00000001, 
    0x000000b4, 0x000000e0, 0x000000f0, 0x00010002, 0x00000001, 0x000000b4, 
    0x000000c4, 0x000000fb, 0x00030002, 0x00000001, 0x00000108, 0x00000118, 
    0x00000128, 0x00000003, 0x00000001, 0x00000138, 0x00000000, 0x00000148, 
    0x00010003, 0x00000001, 0x00000138, 0x00000000, 0x00000156, 0x00040002, 
    0x00000001, 0x000000b4, 0x000000e0, 0x6867694c, 0x6c6f4374, 0x0031726f, 
    0x00030001, 0x00040001, 0x00000001, 0x00000000, 0x3f800000, 0x3f800000, 
    0x3f800000, 0x3f800000, 0x4174614d, 0x6569626d, 0xab00746e, 0x00000000, 
    0x00000000, 0x00000000, 0x3f800000, 0x4474614d, 0x75666669, 0x4d006573, 
    0x70537461, 0x6f506365, 0xabab0077, 0x00030000, 0x00010001, 0x00000001, 
    0x00000000, 0x42200000, 0x00000000, 0x00000000, 0x00000000, 0x6f6c6f63, 
    0x6d615372, 0x72656c70, 0xababab00, 0x000c0004, 0x00010001, 0x00000001, 
    0x00000000, 0x6d726f6e, 0x61536c61, 0x656c706d, 0x63730072, 0x61656e65, 
    0x6569626d, 0x7000746e, 0x5f325f73, 0x694d0030, 0x736f7263, 0x2074666f, 
    0x20295228, 0x58443344, 0x68532039, 0x72656461, 0x6d6f4320, 0x656c6970, 
    0x2e392072, 0x372e3531, 0x302e3937, 0x00303030, 0x05000051, 0xa00f0005, 
    0xbf000000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000, 
    0xb0230000, 0x0200001f, 0x80000000, 0xb0270001, 0x0200001f, 0x80000000, 
    0xb0270002, 0x0200001f, 0x80000000, 0xb0270003, 0x0200001f, 0x80000000, 
    0xb0270004, 0x0200001f, 0x80000000, 0xb0270005, 0x0200001f, 0x80000000, 
    0xb0270006, 0x0200001f, 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 
    0xa00f0801, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801, 0x03000042, 
    0x802f0000, 0xb0e40000, 0xa0e40800, 0x02000024, 0x80270002, 0xb0e40005, 
    0x02000024, 0x80270003, 0xb0e40006, 0x03000002, 0x80230001, 0x80e40001, 
    0xa0000005, 0x03000002, 0x80240001, 0x80ff0001, 0xa0000005, 0x03000005, 
    0x80270003, 0x80e40003, 0x80550001, 0x03000008, 0x80210004, 0xb0e40002, 
    0xb0e40002, 0x04000004, 0x80270002, 0x80000001, 0x80e40002, 0x80e40003, 
    0x02000007, 0x80280001, 0x80000004, 0x04000004, 0x80270002, 0xb0e40002, 
    0x80ff0001, 0x80e40002, 0x02000024, 0x80270003, 0x80e40002, 0x02000001, 
    0x80270002, 0xb0e40004, 0x03000002, 0x80270004, 0x80e40002, 0xb1e40003, 
    0x03000008, 0x80210001, 0x80e40004, 0x80e40004, 0x02000007, 0x80280001, 
    0x80000001, 0x02000024, 0x80270002, 0xb0e40001, 0x04000004, 0x80270005, 
    0x80e40004, 0x80ff0001, 0x80e40002, 0x02000024, 0x80270004, 0x80e40005, 
    0x03000008, 0x80210001, 0x80e40004, 0x80e40003, 0x0300000b, 0x80280002, 
    0x80000001, 0xa0550005, 0x03000008, 0x80210001, 0x80e40002, 0x80e40003, 
    0x03000020, 0x80280001, 0x80ff0002, 0xa0000003, 0x03000005, 0x80270002, 
    0x80aa0001, 0xa0e40000, 0x0300000b, 0x80280002, 0x80000001, 0xa0550005, 
    0x03000005, 0x80280001, 0x80ff0001, 0x80ff0002, 0x03000005, 0x80270001, 
    0x80ff0002, 0xa0e40000, 0x03000005, 0x80270002, 0x80e40002, 0x80ff0001, 
    0x02000001, 0x80270003, 0xa0e40002, 0x03000002, 0x80270003, 0x80e40003, 
    0xa0e40004, 0x04000004, 0x80270001, 0xa0e40001, 0x80e40001, 0x80e40003, 
    0x04000004, 0x80270000, 0x80e40001, 0x80e40000, 0x80e40002, 0x03000005, 
    0x80280000, 0x80ff0000, 0xa0ff0001, 0x02000001, 0x802f0800, 0x80e40000, 
    0x0000ffff
};
